package gui_layer;

import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.Toolkit;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JDesktopPane;

@SuppressWarnings("serial")
public class RestockTester extends JFrame
{

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args)
	{
		EventQueue.invokeLater(new Runnable()
		{
			public void run()
			{
				try
				{
					RestockTester frame = new RestockTester();
					frame.setVisible(true);
				}
				catch (Exception e)
				{
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public RestockTester()
	{
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		try
		{
			setIconImage(Toolkit.getDefaultToolkit().getImage(RestockTester.class.getResource("/img/icon.png")));
		}
		catch (Exception e)
		{
		}
		setBounds(100, 100, 1200, 700);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		
		JDesktopPane desktopPane = new JDesktopPane();
		NewSaleGUI ns_gui = new NewSaleGUI(null);
		desktopPane.add(ns_gui);
		ns_gui.setVisible(true);
		
		contentPane.add(desktopPane, BorderLayout.CENTER);
		NewRestockGUI nr_gui = new NewRestockGUI(null);
		nr_gui.setBounds(300, 300, 1000, 400);
		desktopPane.add(nr_gui);
		nr_gui.setVisible(true);
		
		
		
	}

}
